package utils;

import Message.AccountAddFriendInfo;

import java.io.Serializable;
import java.util.LinkedList;

/**
 * 该类存储每次服务器轮询返回给当前用户的所有好友申请类AccountAddFriendInfo
        * */
public class AccountAddFriendInfoList implements Serializable {
    LinkedList<AccountAddFriendInfo> accountAddFriendInfoList;

    public AccountAddFriendInfoList(){
        this.accountAddFriendInfoList = new LinkedList<AccountAddFriendInfo>();
    }

    public int size(){return accountAddFriendInfoList.size();}

    public void add(AccountAddFriendInfo accountAddFriendInfo){ accountAddFriendInfoList.add(accountAddFriendInfo);}

    public AccountAddFriendInfo get(int i){return accountAddFriendInfoList.get(i);}
}
